package account.student.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JMenuItem;

import account.student.view.StudentAccountView;
import account.student.view.StudentView;
import tools.old.files.HelpView;


public class StudentController implements ActionListener{

	public StudentController(JButton btnOVR) {}
	public StudentController(JMenuItem mntmNewMenuItem) {}

	public void actionPerformed(ActionEvent e) {
		//app afsluiten
		if ("Afmelden".equals(e.getActionCommand())) {
			System.exit(0);
		}

		//overige knop opent studentenscherm
		if ("btnOVR".equals(e.getActionCommand())) {
			StudentView.getInstance();
		}	

		//studenten gegevens bijwerken
		if ("Bewerken".equals(e.getActionCommand())) {
			StudentAccountView.getInstance();
		}

		//TODO over de app maken
		if("Voorwaarden".equals(e.getActionCommand())){
			HelpView hv = new HelpView();
		}
	}
}